package com.epam.kulibaba.components.header;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import com.epam.kulibaba.components.Component;

public class HeaderPage extends Component{
	public static final String SEARCH_BLOK =".head_menu_form_content";
	public static final String SEARCHINPUT = "#edit-name-1";
	@FindBy(css= HeaderPage.SEARCH_BLOK)
	private WebElement HeaderSearchBlock;
	@FindBy(css = HeaderPage.SEARCHINPUT)
	private WebElement searchInputField;
	
	public static HeaderPage getHeader(WebDriver driver) {
		HeaderPage header = PageFactory.initElements(driver, HeaderPage.class);
		return header;
	}
	public WebElement getSearchBlock(){
		return HeaderSearchBlock;
	}
	public WebElement getSearchInputField(){
		return searchInputField;
	}
}

